Skip to content

Make it easy to fix and free energy offset#139

Merged
henrikjacobsenfys merged 4 commits intodevelopfrom
energy-offset
Mar 31, 2026
Merged

Make it easy to fix and free energy offset#139
henrikjacobsenfys merged 4 commits intodevelopfrom
energy-offset

Conversation

@henrikjacobsenfys
Copy link
Copy Markdown
Member

Make it easy to fix and free energy offset during analysis

@henrikjacobsenfys henrikjacobsenfys added [scope] enhancement Adds/improves features (major.MINOR.patch) [priority] medium Normal/default priority labels Mar 25, 2026
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 25, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.78%. Comparing base (cec1976) to head (bfa68b7).
⚠️ Report is 1 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #139      +/-   ##
===========================================
+ Coverage    97.75%   97.78%   +0.03%     
===========================================
  Files           37       37              
  Lines         2493     2530      +37     
  Branches       422      434      +12     
===========================================
+ Hits          2437     2474      +37     
  Misses          32       32              
  Partials        24       24              
Flag Coverage Δ
integration 49.48% <27.50%> (-0.38%) ⬇️
unittests 97.78% <100.00%> (+0.03%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Copy Markdown
Member

@rozyczko rozyczko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

Comment on lines +384 to +385
raise TypeError(f'Q_index must be an int or None, got {type(Q_index).__name__}')

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This raises TypeError but similar check in analysis_base in _verify_Q_index raises IndexError.
IndexError is probably a better choice.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think TypeError is correct, so I've updated analysis_base. Also makes the logic easier to follow in _verify_Q_index

@henrikjacobsenfys henrikjacobsenfys merged commit e072df7 into develop Mar 31, 2026
34 checks passed
@henrikjacobsenfys henrikjacobsenfys deleted the energy-offset branch April 12, 2026 05:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[priority] medium Normal/default priority [scope] enhancement Adds/improves features (major.MINOR.patch)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants